package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveDishWithFlavor(DishDto dishDto);

    Page<DishDto> pageDishWithCategory(Integer page, Integer pageSize, String name);

    DishDto getDishWithFlavor(Long id);

    void updateDishWithFlavor(DishDto dishDto);

    void deleteishWithFlavor(Long[] ids);

    List<DishDto> listWithFlavor(String name, Long categoryId, Integer status);
}
